var color = {
  type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{
    offset: 0, color: "#FDC48D", // 0% 处的颜色
  }, {
    offset: 1, color: "#EAC093", // 100% 处的颜色
  },],
}

const colors = [{
  startColor: '#7F5EF7', endColor: '#9E85F8'
},  {
  startColor: '#17BDFF', endColor: '#607DE6'
}, {
  startColor: '#FFC422', endColor: '#FDE08F'
},{
  startColor: '#3295FF', endColor: '#64AFFE'
}, {
  startColor: '#FFE350', endColor: '#FDEFA6'
}, {
  startColor: '#68D8EE', endColor: '#8DE1F2'
}, {
  startColor: '#FF7053', endColor: '#FDB6A8'
}, {
  startColor: '#74D98F', endColor: '#B8EAC6'
}, {
  startColor: '#C7DF70', endColor: '#D4E693'
}, {
  startColor: '#3FCACF', endColor: '#9DE3E6'
}, {
  startColor: '#B8ECF1', endColor: '#DAF4F7'
}, {
  startColor: '#4B38DC', endColor: '#7769E4'
}]

export const colorArr = colors;

export const colorOptions = ()=>{
  var arr = [];
  colors.map(i=>{
    arr.push({
      type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{
        offset: 0, color: i.startColor, // 0% 处的颜色
      }, {
        offset: 1, color: i.endColor, // 100% 处的颜色
      },],
    })
  })
  return arr;
}

